<?php
require_once '../common/requires.php';

$code = $_GET['code'];
$params = array(
	'code' => $code,
);
$result = $client->getAccessToken($params);
var_dump($result);
echo '<br/><br/>';
?>
<a href="../api/5_api.php?access_token=<?php echo urlencode($result['access_token']); ?>">Test Api</a>